import http from '@/utils/request'

/**
 * 获取商品详情
 * @param {1} id 
 * @returns Promise
 */
export const getGoodsInfoByIdApi = (id) => http.get(`/goods-infos/${id}`)

/**
 * 获取商品列表
 * @param {Object} params 
 * @returns Promise
 */
export const getGoodsListApi = (params) => http.get('/goods-infos/page' , {params})